<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="base" value="${pageContext.request.contextPath}" />
<html>
<head>
    <%@include file="common/common.jsp"%>
    <title>个人中心</title>
    <link rel="stylesheet" href="${base}/css/personCenter.css" />
</head>
<body>
<div class="top">
    <div class="userMessage">
        <c:choose>
            <c:when test="${account.hendimgurl ne null}">
                <img src="${account.hendimgurl}" alt="" />
            </c:when>
            <c:otherwise>
                <img src="" alt="" />
            </c:otherwise>
        </c:choose>
        <span class="userName">
              <c:choose>
                  <c:when test="${account.nickName ne null}">
                      ${account.nickName}
                  </c:when>
                  <c:otherwise>
                      匿名
                  </c:otherwise>
              </c:choose>
        </span>
        <span class="userSchool"><i class="icon iconfont icon-ditu"></i>
             <c:choose>
                    <c:when test="${tSchool ne null}">
                        ${tSchool.schoolName}
                    </c:when>
                     <c:otherwise>
                         暂无学校！
                     </c:otherwise>
             </c:choose>
        </span>
    </div>
    <div class="taskmsg clearfix">
        <div class="taskmsgList">
            <span class="taskMainTxt">
                   <c:choose>
                       <c:when test="${sendcount ne null}">
                           ${sendcount}
                       </c:when>
                       <c:otherwise>
                        0
                       </c:otherwise>
                   </c:choose>
            </span>
            <span class="taskSubTxt">发单总数</span>
        </div>
        <div class="taskmsgList">
            <span class="taskMainTxt">
                   <c:choose>
                       <c:when test="${sums ne null}">
                           ${sums}
                       </c:when>
                       <c:otherwise>
                           0
                       </c:otherwise>
                   </c:choose>
            </span>
            <span class="taskSubTxt">收益总数</span>
        </div>
        <div class="taskmsgList">
            <span class="taskMainTxt">
                   <c:choose>
                       <c:when test="${accepts ne null}">
                           ${accepts}
                       </c:when>
                       <c:otherwise>
                           0
                       </c:otherwise>
                   </c:choose>
            </span>
            <span class="taskSubTxt">接单总数</span>
        </div>
    </div>
</div>
<!--个人信息分类-->
<div class="userClass">
    <div class="userClassSectionOne">
        <div class="userClassList" data-url="${base}/order/mineObtainOrder.html">我的发单</div>
        <div class="userClassList" data-url="${base}/order/mineOrder.html">我的接单</div>
        <div class="userClassList" data-url="${base}/order/mineProfit.html">我的收益</div>
    </div>
    <div class="userClassSectionOne">
        <div class="userClassList" data-url="${base}/myhome/mineSchool.html">我的学校</div>
        <div class="userClassList" data-url="${base}/inviteFriend.html">邀请好友</div>
        <div class="userClassList" data-url="${base}/loginout">退出登录</div>
    </div>
</div>

<!--底部导航-->
<%@include file="common/footer.jsp"%>
</body>
<script type="text/javascript">
    mui(".userClass").on('tap','.userClassList',function(){
        var url = this.getAttribute("data-url");
        mui.openWindow({
            url:url
        });
    });
</script>
</html>